package com.threegroup.web.dao;

import com.threegroup.web.pojo.ShoppingCartEntity;

import java.util.List;

public interface ShoppingCartEntityMapper {
    int deleteByPrimaryKey(Long id);

    int insert(ShoppingCartEntity record);

    int insertSelective(ShoppingCartEntity record);

    ShoppingCartEntity selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(ShoppingCartEntity record);

    int updateByPrimaryKey(ShoppingCartEntity record);

    List<ShoppingCartEntity> queryAll();

    List<ShoppingCartEntity> queryByUserId(long id);

    int deleteByUserId(String id);

    int copyDataToDB(List<ShoppingCartEntity> shoppingCartEntityList);
}